This replication archive contains three main folders, the contents of which are described below:

1. data
2. code
3. results

All contents of this replication archive should be maintained within their current directory structure in order to allow for the R scripts to properly access necessary files. 

The R version employed in the creation of this replication archive was R version 3.5.3 (2019-03-11, "Great Truth"). The R packages used are 'dplyr' (0.8.0.1), 'ggplot2' (3.1.0), 'lmtest' (0.9.36), 'reshape2' (1.4.3), and 'sandwich' (2.5.0). Runtimes for the R scripts can be found at the end of this document.


(1) The 'data' folder contains 6 subfolders and a variable codebook.

The 'individual' subfolder contains separate csv files for each respondent's eye-tracking and conjoint survey data. The structure of these data files is such that each row corresponds to a unique fixation, and the rows are ordered in the sequence of the fixations. These data files contain all of the source data used to create the data files held in the other subfolders, which store the intermediary and final data files used for the analysis.

The 'individual_fix_processed', 'individual_conj_processed', and 'individual_background_processed' subfolders contain processed data files for each respondent. These data files are created (via the R script '1_process_individual_data.R' in the 'code' main folder) from the data contained in the 'individual' subfolder.

The 'pooled_processed' subfolder contains three final, processed data files used for the analysis. These files are created (via the R script '2_merge_processed_individual_data.R' in the 'code' main folder) by merging the data files in the 'individual_fix_processed', 'individual_conj_processed', and 'individual_background_processed' subfolders.

The 'bansaketal2019_replication_data' subfolder contains replication data from a previous published study used for select analyses.


(2) The 'code' folder contains 25 R scripts and an additional subfolder ('helper_functions') containing functions that are sourced by these R scripts.

The script '0_master.R' sources all of the other 24 R scripts in the appropriate sequence in order to process the data and produce all figures and tables.

The script '1_process_individual_data.R' performs key processing of the respondent-level data files contained in the 'data/individual' subfolder, and deposits the resulting data files in the 'data/individual_fix_processed', 'data/individual_conj_processed', and 'data/individual_background_processed' subfolders. This script precedes all other scripts.

The script '2_merge_processed_individual_data.R' merges those resulting data files and deposits the final merged data files into the 'data/pooled_processed' subfolder. This script follows '1_process_individual_data.R' but precedes all other scripts.

The 'build_figure' and 'build_table' scripts contain the code for generating all figures and tables in the main study text and appendix. In addition, where appropriate, these scripts also contain the code for analyses that correspond to particular figures. For instance, 'build_figure_4.R' also performs the randomization inference tests that accompany Figure 4 in the main study text.


(3) The 'results' folder contains 2 subfolders.

The subfolder 'figures' contains the figures included in the main study text and appendix. The subfolder 'tables' contains the results presented in the tables in the main study text and appendix.


(*) Approximate runtimes for R scripts on a standard laptop (Intel Core i7-8750H @ 2.20 GHz, 16.00 GB RAM, Windows 10 64-bit) can be found below.

Runtimes:

code/1_process_individual_data.R: ~ 2 minutes
code/2_merge_processed_individual_data.R: < 10 seconds
code/build_figure_2.R: < 10 seconds
code/build_figure_3.R: ~ 1 minute
code/build_figure_4.R: ~ 40 minutes
code/build_figure_5.R: < 10 seconds
code/build_figure_6.R: < 10 seconds
code/build_figure_7.R: < 10 seconds
code/build_figure_8.R: < 10 seconds
code/build_figure_9.R: < 10 seconds
code/build_figure_A1.R: ~ 1 minute
code/build_figure_A2.R: ~ 1 minute
code/build_figure_A3.R: ~ 1 minute
code/build_figure_A4.R: ~ 30 seconds
code/build_figure_A5.R: < 10 seconds
code/build_figure_A6.R: < 10 seconds
code/build_figure_A7.R: < 10 seconds
code/build_figure_A8.R: < 10 seconds
code/build_figure_A9.R: < 10 seconds
code/build_figure_A10.R: < 10 seconds
code/build_figure_A11.R: < 10 seconds
code/build_figure_A12.R: < 10 seconds
code/build_figure_A13.R: < 10 seconds
code/build_table_A2.R: < 10 seconds
